<template>
  <div>
    <div class="login_nav">
      <van-icon name="arrow-left" class="login_icon" @click="backFn" />
      <p>账号登录</p>
    </div>
    <van-cell-group style="margin: 15px">
      <van-field placeholder="请输入账号" class="ipt" />
      <van-field placeholder="请输入密码" class="ipt" />
    </van-cell-group>
    <button class="login_bt">登录</button>
    <div class="zhuce">
      <a href="">还没有账号，去注册</a>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    backFn() {
      this.$router.push({
        path: "/layout/myInfo",
      });
    },
  },
};
</script>

<style>
.login_nav {
  display: flex;
  height: 45px;
  background-color: #21b97a;
  position: relative;
}
.login_nav p {
  color: #fff;
  font-size: 20px;
  line-height: 45px;
  text-align: center;
  flex: 1;
}
.login_nav .login_icon {
  color: #fff;
  position: absolute;
  top: 10px;
  left: 10px;
}
.ipt {
  height: 60px;
  width: 100%;
  padding: 10px 0;
  border: 0;
  color: #000;
  font-size: 17px;
  background-color: transparent;
}
.login_bt {
  display: block;
  outline: 0 none;
  -webkit-appearance: none;
  padding: 0;
  text-align: center;
  font-size: 18px;
  height: 50px;
  line-height: 50px;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  white-space: nowrap;
  color: #fff;
  background-color: #1cb676;
  border: 1px solid #1cb676;
  border-radius: 2px;
  width: 100%;
}
.zhuce {
  font-size: 14px;
  text-align: center;
  margin-top: 16px;
}
.zhuce a {
  color: #000;
}
</style>
